package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * @author jshstart
 * @creat 2020-11-15 13:07
 */
public interface OrderSettingMapper extends BaseMapper<OrderSetting> {
    @Delete("delete  from t_order_setting where order_date < #{date} ")
    void clearHistoryObject(@Param("date") String date);
}
